<?php
namespace app\admin\model;

use think\Model;

class Answer extends Model
{
    protected $readonly = ['mobile'];
    
    protected $insert  = ['create_time'];
    
	//protected $update = [];
	
    protected function setPasswordAttr($value)
    {
        return md5($value);
    }
    public function getCreatetimeTurnAttr($value, $data)
    {
        return date('Y-m-d H:i:s', $data['create_time']);
    }
}